package com.jiepos.mpos.biz.operationlog.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.jiepos.mpos.biz.operationlog.service.LogOnLogService;
import com.jiepos.mpos.common.entity.App_Log_Client_KeyEntity;
import com.jiepos.mpos.core.controller.BaseController;
import com.jiepos.mpos.core.entity.Pagination;

/**
 * 
 * 客户端登陆日志控制类
 * @ProjectName:  [mpos] 
 * @Package com.jiepos.mpos.biz.operationlog.controller 
 * @author 张磊
 * @version 1.0
 * @since 2017年12月8日 下午4:58:58
 * @history（历次修订内容、修订人、修订时间等）
 * @UpdateRemark [说明本次修改内容]
 * @Copyright (c) 2017 江苏杰博实信息技术有限公司
 */
@Controller
@RequestMapping("/logonlog")
public class LogOnLogController extends BaseController {
	
	@Autowired
	private LogOnLogService logOnLogService;
  
	/**
	 * 进入客户端登陆日志页面
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping("/getLogOnList.do")
	public ModelAndView getLogOnList( HttpServletRequest request,HttpServletResponse response){
		
		ModelAndView model = new ModelAndView("/module/operationlog/logonlog/logonlog_list"); 
		return super.getDetail(request, response, model);
	}
	
	/**
	 * 获取客户端登陆日志Json
	 * @param request
	 * @param response
	 * @param pagination
	 * @param app_Log_Client_KeyEntity
	 * @param appType
	 * @return
	 */
	@RequestMapping("/getLogOnListJson.do")
	public Map getLogOnListJson(HttpServletRequest request,HttpServletResponse response,Pagination pagination,App_Log_Client_KeyEntity app_Log_Client_KeyEntity,String startDate,String endDate,String custom_phone,String appType){
		
		return logOnLogService.getLogOnListJson(pagination,request,app_Log_Client_KeyEntity,appType,custom_phone,startDate,endDate);
	}
}
 